-
Couldn't load subscription status.
- Fork 1.2k
Make sure our assemblies are lazily loaded #1388
Conversation
Lazily load `IPullRequestSessionManager` in `InlineCommentMarginProvider` to prevent loading the kitchen sink on VS startup.
Was causing Rx to get loaded everywhere.
To prevent `GitHub.App` being loaded when Team Explorer shown.
So that `GitHub.App` is only loaded when actually needed.
71cb217 to
fb88c3e
Compare
|
This has broken logging in because we're now trying to get the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
LGTM too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I confirmed the assemblies aren't all loading.
I'll have to remember to lazy load the pull request session manager when displaying the associated PR on the status bar.
We need to make sure we're on the main thread to get an instance of `ITwoFactorChallengeHandler`. This is nasty and the whole thing needs to be refactored; see #1398.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've confirmed that login/2FA is working. 👍 LGTM!
This fixes our lazy loading of assemblies. Previously all assemblies were loaded on VS startup (with Team Explorer and GitHub pane not shown):
Following this PR the list now looks like:
Note that this only fixes things to the state they were before. ReactiveUI is still used by
GitHubConnectSectionwhich in VS2017 is the default view in team explorer, meaning that RxUI gets loaded as soon as Team Explorer loads in VS2017. We should fix this, but it's a different PR I think.Fixes #1387